<template lang="html">
  <div class="chooseButton">
    <div class="blueButton" @click="save()">保存</div>
    <div class="grayButton" @click="cancel()">取消</div>
  </div>
</template>

<script>
export default {

  methods: {
    save: function () {
      console.log(this.$parent)
      this.$parent.CHANGE_NAME = !this.$parent.CHANGE_NAME
    },
    cancel: function () {
      this.$emit('practice')
    }
  }
}
</script>

<style lang="scss" scoped>

.chooseButton {

  display: flex;

  .blueButton {
    width: 60px;
    height: 32px;
    border-radius: 3px;
    background-color: #0f88eb;
    line-height: 32px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    margin-right: 16px;
    cursor: pointer;
    &:hover {
      background-color: #0d79d1;
    }
  }

  .grayButton {
    width: 60px;
    height: 32px;
    border-radius: 3px;
    border: 1px solid #ccd8e1;
    color: #8590a6;
    line-height: 32px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;

    &:hover {
      background-color: rgba(207,216,230,.1);
    }
  }
}

</style>
